package com.faxsun.web.notification;

import com.faxsun.web.notification.exception.ParameterEmptyException;

/**
 * 范客生活资讯站API调用接口
 * @author songdragon
 *
 */
public interface FaxsunInfoNotfier {

	/**
	 * 通知资讯，将openId表示的用户绑定到电商id为customerId的用户上
	 * @param customerId
	 * @param openId
	 * @param channelId
	 * @return
	 */
	public boolean notifyBindAccount(long customerId,String openId,String channelId,String unionId) throws ParameterEmptyException;
	
	/**
	 * 通知资讯，将电商id为fromId的用户合并到toId用户
	 * @param fromId
	 * @param toId
	 * @return
	 */
	public boolean notifyMergeAccount(long fromId, long toId) throws  ParameterEmptyException;
	
	/**
	 * 通知资讯，将第三方帐户openIdFrom合并到电商用户Id为customerIdTo的用户
	 * @param openIdFrom
	 * @param customerIdTo
	 * @param channelId
	 * @return
	 */
	public boolean notifyMergeAccount(long openIdFrom, long customerIdTo, String channelId);
	
	/**
	 * 通知资讯，解除第三方帐户绑定
	 * @param customerId
	 * @param channelId
	 * @return
	 */
	public boolean notifyUnbindAccount(long customerId,String channelId);
}
